
module.exports = {
	lintOnSave: false,
	css: {
    extract: process.env.NODE_ENV !== 'development',
    sourceMap: false,
    requireModuleExtension: true,
    loaderOptions: {
      stylus: {
        'resolve url': true,
        import: [
          './src/theme'
        ]
      },
      less: {
        // 若 less-loader 版本小于 6.0，请移除 lessOptions 这一级，直接配置选项。
        lessOptions: {
          modifyVars: {
            // 直接覆盖变量
            'nav-bar-title-text-color': '#fff',
            '@nav-bar-background-color':' #e54847',
            '@nav-bar-title-font-size':'18px'
          },
          postcss: {
            // plugins:[px2rem({remUnit: 375/10})] //375是设计稿宽度
         }
        },
      },
    }
  },
  devServer: {
		proxy: {
		  '/dev': {
			target: 'https://m.maoyan.com',
			changeOrigin: true,
      pathRewrite: {
        '^/dev': ''
        }
		  }
		}
  },
}

